package com.nf.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class 测试类 {
    public static void main(String[] args) {
        //1.先拿到一个Spring的容器
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        //2.拿一台电脑
        电脑 computer = (电脑) context.getBean("computer");
        computer.打印文本("《全国喜迎十九大》");

    }
}